<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:p="http://primefaces.org/ui"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" type="text/css" media="screen"
		href="resources/style.css" />
	<title>E-PRODUÇÃO</title>
</h:head>

<h:body>

	<p:layout fullPage="true">

		<p:layoutUnit position="north" size="70">
			<ui:include src="cabecalho.xhtml" />
		</p:layoutUnit>

		<p:layoutUnit position="west" size="200" resizable="false"
			closable="false" collapsible="false">
			<ui:include src="Menu.xhtml" />
		</p:layoutUnit>

		<p:layoutUnit position="center" header="Busca Maquina"
			style="width: 760px;">

			<h:form id="form">
				<p:growl id="MSG_ERRO" showDetail="false" sticky="true" />
				<div align="center">
					<div style="width: 760px; margin: 0 auto; text-align: left;">


						<p:panel id="panelCampos" header="filtros de Preenchimento"
							visible="true" style="width: 760px;">


							<h:panelGrid columns="2">

								<h:outputLabel value="Descrição:" />
								<p:inputText label="Descrição" required="false" maxlength="70"
									value="#{BuscarMaquina.descr}" size="35" />

								<h:outputLabel value="Marca: " />
								<p:inputText label="Marca" required="false" maxlength="70"
									value="#{BuscarMaquina.marca}" size="35" />

								<h:outputLabel value="Modelo: " />
								<p:inputText label="Modelo" required="false" maxlength="70"
									value="#{BuscarMaquina.modelo}" size="35" />

								<h:outputLabel value="Tipo Maquina: " />
								<p:selectOneMenu value="#{BuscarMaquina.selectTipoMaquina}" size="35"
									effect="fade">
									<f:selectItem itemLabel="" itemValue="" />
									<f:selectItems value="#{BuscarMaquina.listTipoMaquina}" />
								</p:selectOneMenu>

							</h:panelGrid>

						</p:panel>
						<p:panel id="panelBotoes" header="Botões de Ação" visible="true"
							style="width: 760px;">
							<h:panelGrid columns="4"
								style="margin-left: 30%;margin-rigth: 30%;">
								<p:commandButton value="Buscar" ajax="false" />								
								<p:commandButton value="Limpar" ajax="false" />
								<p:commandButton value="Voltar" ajax="false"
									action="#{BuscarMaquina.Voltar}" />
							</h:panelGrid>
						</p:panel>
						<p:panel id="panelQuatro" header="Resultado de Busca"
							visible="false" style="width: 760px;">
							<p:dataTable id="basic" var="func" value="">
								<p:column id="modelHeader">
									<f:facet name="header">  
			                    		Código  
			           				 </f:facet>
									<h:outputText value="" />
								</p:column>

								<p:column>
									<f:facet name="header">  
					                    Descrição  
						            </f:facet>
									<h:outputText value="" />
								</p:column>

								<p:column>
									<f:facet name="header">  
					                    Marca  
						            </f:facet>
									<h:outputText value="" />
								</p:column>

								<p:column>
									<f:facet name="header">  
					                    Modelo  
						            </f:facet>
									<h:outputText value="" />
								</p:column>

								<p:column>
									<f:facet name="header">  
					                    Tipo Maquina  
						            </f:facet>
									<h:outputText value="" />
								</p:column>

								<p:column>
									<f:facet name="header">  
					                    ***  
						            </f:facet>
									<h:outputText value="" />
								</p:column>

							</p:dataTable>
						</p:panel>
					</div>
				</div>
			</h:form>

		</p:layoutUnit>
	</p:layout>

</h:body>
</html>